<template>
	<view class="page">
		<cu-custom bgColor="bg-white" :isBack="true" :isrefresh="true">
			<block style="color: #777777;font-size: 32rpx;" slot="content">消息详情</block>
		</cu-custom>
		<uc-content>
			<view style="background: #fff;padding: 20rpx 40rpx;">
				<u-form :model="feedbackForm" ref="feedbackForm" label-width="100px" style="padding: 24rpx;">
					<u-form-item label-position="left" label="反馈描述">
						<u-input type="textarea" :border="border" placeholder="请填写反馈内容" v-model="feedbackForm.feedbackContent" />
					</u-form-item>
				
				</u-form>
				
				<u-button @click="submit" type="primary" style="margin: 24rpx;">提交</u-button>
			</view>
		</uc-content>
		<message />
	</view>
</template>

<script>
	export default {
		data() {
			return {
				border:true,
				noticeId:"",
				feedbackForm:{

				},
			}
		},
		methods: {
			onLoad(e) {
				this.noticeId=e.ucId
			},
			submit(){
				let that = this
				let app = getApp()
				app.globalData.request({
					url: 'wx/notice/updateMyNoticeFeedback',
					data: {ucId:that.noticeId,feedbackContent:that.feedbackForm.feedbackContent}
				}).then(function(res) {
					uni.navigateBack({
						delta:1
					})
				}).catch(function(e) {
				
				})
			}
		}
	}
</script>

<style>

</style>
